﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Test1
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
            LoadMenustrip();
        }

        private void Form5_Load(object sender, EventArgs e)
        {

        }

        void LoadMenustrip()
        {
            ContextMenuStrip ms = new ContextMenuStrip();
            ms.Items.Add("全选(Ctrl+A)");
            ms.Items.Add("复制(Ctrl+C)");
            ms.Items.Add("粘贴(Ctrl+V)");
            ms.Items.Add("删除(Delete)");

            this.button1.ContextMenuStrip = ms;
        }
    }
}
